package com.kehutong.employee.dao;

import org.coraframework.orm.annotation.Dao;
import org.coraframework.orm.annotation.Mapper;
import org.coraframework.orm.jdbc.execute.Condition;

import java.util.HashMap;
import java.util.Map;

@Dao
public interface PositionDao {

	@Mapper(
			genericType = HashMap.class,
			sql="select if(max(sort) is null,1, max(sort)+1) as sort from t_member_position"
	)
	public Map<String, Object> getMaxSort(Condition... condition);


}
